package com.ruoyi.aqsc.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.page.TableDataInfo;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;


import java.time.LocalDateTime;
import java.util.Date;


@Data
@TableName("a_shop_manage")
public class AShopManage {

    @Excel(name = "车间信息ID", cellType = Excel.ColumnType.NUMERIC,prompt = "新增不填写，修改填写对应Id")
    @TableId(type = IdType.AUTO,value = "id")
    private Long id;

    @Excel(name = "车间名称")
    @TableField("workshop_name")
    private String workshopName;

    @Excel(name = "所属部门")
    @TableField("departments_name")
    private String departmentsName;

    @Excel(name = "占地面积")
    @TableField("floor_space")
    private Long floorSpace;

    @Excel(name = "层数")
    @TableField("layer_number")
    private Long layerNumber;

    @Excel(name = "建筑结构")
    @TableField("building_structure")
    private String buildingStructure;

    @Excel(name = "火灾危险等级")
    @TableField("danger_level")
    private String dangerLevel;

    @Excel(name = "耐火等级")
    @TableField("fire_rating")
    private String fireRating;

    @Excel(name = "备注")
    @TableField("note")
    private String note;

    @Excel(name = "现场照片")
    @TableField("paper_attach")
    private String paperAttach;

    @Excel(name = "创建日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "creat_date",fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @Excel(name = "修改日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "modify_date",fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @Excel(name = "修改者")
    @TableField("modiy_user")
    private String modiyUser;

    @Excel(name = "图件附纸")
    @TableField("scene_photos")
    private Long scenePhotos;

}
